<template>
  <div>
    <div class="login-bg">
      <div class="login-form">
        <div class="logo">
          <svg
            t="1715304612133"
            class="icon"
            viewBox="0 0 1024 1024"
            version="1.1"
            xmlns="http://www.w3.org/2000/svg"
            p-id="5446"
            width="150"
            height="150"
          >
            <path
              d="M1.9 492.5c-0.2-0.7 0.2-1.3 0.2-1.3 6.6-12.7 13.7-25.1 21.5-37.1 6.7-10.3 14.1-20 22.5-29 10.8-11.5 23.2-20.9 36.8-28.7 17.8-10.2 36.6-17.8 56.3-23.3 9.2-2.5 18.5-4.7 28-6.1 5.8-0.9 11.6-1.7 17.4-2.4 5.1-0.6 10.2-0.9 15.3-1.3 5.9-0.5 11.8-0.5 17.7-0.3 4.6 0.2 9.3 0.5 13.9 0.8 1.1 0.1 1.6 0.7 1.6 1.7-0.1 0.9-0.7 1.5-1.7 1.4-7.8-0.8-15.7-1.1-23.6-1-6.2 0.1-12.4 0.4-18.6 1-6.8 0.6-13.5 1.6-20.1 2.7-8.2 1.4-16.3 3.3-24.4 5.4-12.6 3.3-25 7.4-37 12.6-15.2 6.6-29.4 14.8-42.4 25.3-10.5 8.5-19.7 18.3-27.7 29.2-7.4 10-14 20.5-20.1 31.3-3.6 6.3-7 12.7-10.5 19-0.2 0.3-0.3 0.6-0.5 0.9-1 1.7-3.2 1.8-4.2 0.4 0.1-0.2-0.3-0.7-0.4-1.2zM288.2 562.8c-1.3 0.1-2.6-0.9-3.1-2.1-3.4-8.5-6.8-17-10.2-25.4-3.2-8-6.8-15.8-11.1-23.2-4.4-7.6-9.5-14.9-15.6-21.3-8.9-9.4-19.6-15.8-32.1-19-5.6-1.4-11.3-2-17-1.9-12.2 0.2-23.5 3.8-34.1 9.8-8 4.5-15 10.1-21.5 16.5-8.2 8.1-15.4 17-21.9 26.5-5.7 8.4-11.1 16.9-16.6 25.4-8.9 13.8-17.8 27.7-26.7 41.5-5 7.6-10.5 14.9-16.3 21.9-0.3 0.4-0.7 0.8-1.1 1.2-1.2 1-2.7 1-3.9 0-1.1-1-1.3-2.5-0.5-3.8 0.1-0.2 0.2-0.4 0.4-0.5 8.1-10 15.4-20.7 22.2-31.7l25.5-41.4c5.2-8.5 10.5-17 16.3-25.1 6.5-9.1 13.7-17.7 21.9-25.4 9.2-8.6 19.6-15.3 31.3-19.8 5.6-2.1 11.4-3.6 17.4-4.3 4.3-0.5 8.6-0.8 12.9-0.6 15.3 0.7 29 6 41 15.5 6.4 5.1 11.8 11.3 16.5 18 5.9 8.5 10.8 17.6 14.7 27.1 3.6 8.8 7 17.7 10.5 26.6l4.2 11.1c0.4 1.1 0.4 2.1-0.3 3.1-0.7 0.9-1.6 1.4-2.8 1.3z"
              fill="#CF2931"
              p-id="5447"
            ></path>
            <path
              d="M198.6 502.3c10.6 0 19.7 3.1 28 8.7 5.7 3.8 10.5 8.4 14.9 13.6 6 7.2 11.1 15.1 15.3 23.4 4.1 8.1 8 16.3 11.9 24.5 1.8 3.8 3.6 7.5 5.3 11.3 0.2 0.5 0.5 1 0.6 1.5 0.5 1.5-0.1 3.2-1.5 4.1-1.4 0.8-3.1 0.7-4.2-0.4-0.5-0.4-0.8-1-1.1-1.6-4-7.7-7.9-15.4-11.9-23.1-4-7.7-8.4-15.3-13.5-22.3-3.7-5.1-7.8-9.8-12.6-13.9-5.3-4.6-11.2-8.2-17.9-10.5-4.7-1.6-9.6-2.2-14.5-2.2-7.4 0.1-14.3 2.1-20.9 5.2-6.2 2.9-11.8 6.7-17.1 11.1-7 5.9-13.3 12.4-19.2 19.3-6.3 7.4-12.2 15.2-18.3 22.9-10 12.7-20 25.5-30 38.2-3.6 4.6-7.5 9-11.6 13.3-0.7 0.7-1.4 1.2-2.5 1.2-2.3-0.1-3.7-2.5-2.5-4.5 0.2-0.3 0.4-0.5 0.6-0.8 10.4-11.8 20-24.3 29.3-37 11-15.1 22-30.2 33.3-45 7.8-10.2 17-19 27.6-26.2 6.6-4.5 13.8-7.8 21.6-9.6 3.9-0.8 7.7-1.2 10.9-1.2z"
              fill="#CF2931"
              p-id="5448"
            ></path>
            <path
              d="M201.5 430.3c10.3 0 20.4 1.2 30.3 4 17.3 5 31.7 14.6 43.2 28.4 6 7.3 10.8 15.3 15 23.8 4.3 8.8 7.7 18 10.9 27.4 0.9 2.7 1.7 5.5 2.7 8.3 0.6 1.7-0.6 3.4-1.9 3.8-1.6 0.5-3.2-0.2-3.8-1.9-2.1-5.8-4.1-11.7-6.3-17.5-3.4-9-7.4-17.6-12.4-25.9-4.8-7.9-10.4-15.1-17.2-21.3-10.4-9.4-22.4-15.7-36-19.3-6-1.6-12-2.5-18.2-2.9-21-1.2-40.5 3.7-58.6 14.5-10.6 6.4-19.8 14.5-27.9 23.8-7.8 8.9-14.5 18.5-20.7 28.5-6.5 10.5-12.4 21.2-18.5 31.9-7.8 13.8-15.7 27.7-24 41.3-3.8 6.3-7.9 12.4-12.3 18.3-0.4 0.5-0.8 1-1.2 1.4-1.1 1-2.6 0.9-3.7 0-1.1-1-1.4-2.5-0.6-3.7 0.1-0.2 0.2-0.3 0.3-0.4 7.5-10.2 14.2-21 20.4-32 8.1-14.5 16.1-29 24.1-43.4 5.3-9.6 10.7-19.1 16.9-28.2 6.5-9.7 13.8-18.9 22.1-27.1 14-13.8 30.4-23.2 49.3-28.3 5.3-1.4 10.6-2.4 16-3 4.1-0.3 8.1-0.5 12.1-0.5zM195.4 557c7 0.1 13.4 2.1 19.5 5.6 7.8 4.6 14.3 10.6 19.5 18 5.4 7.7 10.6 15.6 15.9 23.4 0.6 1 1.3 1.9 1.8 3 1.4 2.7 0 5.8-3 6.4-1.4 0.3-2.6-0.1-3.6-1-0.5-0.4-1-1-1.4-1.5-5.5-7-10.9-14.1-16.5-21.1-5.9-7.3-13.4-12.5-22.3-15.5-7.5-2.6-15.1-2.4-22.7-0.1-10 3-19 8.1-26.8 15.1-7.3 6.6-14.5 13.2-21.7 20-9.7 9-19.3 18.1-28.9 27.2-0.3 0.3-0.7 0.6-1.1 0.9-1.4 1-3.3 0.8-4.4-0.4-1.1-1.2-1.1-3.1 0-4.4 0.1-0.1 0.2-0.3 0.4-0.4 8.9-9.3 17.8-18.7 26.7-28 6.3-6.6 12.6-13.3 19.2-19.5 5.9-5.6 12.1-10.8 18.5-15.9 7.2-5.7 15.5-9.4 24.5-11 2-0.5 4.2-0.5 6.4-0.8z"
              fill="#CF2931"
              p-id="5449"
            ></path>
            <path
              d="M204.9 408c5.6 0.1 11.2 0.4 16.8 1 11.6 1.3 22.8 4 33.5 8.8 15.7 7 28.5 17.6 38.9 31.3 3.2 4.3 6.1 8.7 8.7 13.4 0.1 0.3 0.3 0.5 0.4 0.8 0.6 1.3 0 2.8-1.2 3.4-1.3 0.7-2.7 0.3-3.5-1-2.2-3.5-4.4-7-6.7-10.4-6.1-8.6-13.3-16.3-21.9-22.5-8-5.9-16.8-10.2-26.1-13.4-7.1-2.4-14.4-4.1-21.9-5.1-7.1-0.9-14.3-1.2-21.5-1-5.4 0.2-10.8 0.7-16.1 1.4-9.4 1.3-18.7 3.4-27.7 6.5-18.8 6.4-35 17-48.8 31.3-8 8.3-14.9 17.5-21.2 27.2-6.3 9.8-12 20-17.4 30.4-6 11.4-11.8 22.8-17.8 34.1-6.1 11.5-12.6 22.8-19.9 33.6-0.2 0.3-0.4 0.7-0.7 1-0.8 1-2.2 1.2-3.3 0.6-1.1-0.6-1.7-2-1.3-3.2 0.1-0.4 0.4-0.9 0.6-1.3 8.3-12.4 15.4-25.4 22.3-38.6 7.6-14.3 15.1-28.7 22.7-43 5-9.4 10.5-18.5 16.8-27.1 7.6-10.3 16.1-19.7 26-27.9 12.4-10.2 26.3-17.5 41.5-22.4 7.8-2.5 15.8-4.5 23.9-5.8 4.7-0.8 9.4-1.4 14.1-1.6 3.5-0.2 7.1-0.3 10.8-0.5z"
              fill="#CF2931"
              p-id="5450"
            ></path>
            <path
              d="M209.2 390c6.1 0.1 12.3 0.4 18.4 1.1 12.5 1.5 24.6 4.4 36.1 9.4 5.6 2.4 11 5.3 16.1 8.6 0.2 0.2 0.5 0.3 0.7 0.5 0.9 0.8 1.1 2 0.5 3-0.7 1-2 1.4-3 0.8-1.1-0.6-2.1-1.3-3.1-2-10.6-6.5-21.9-10.9-34-13.7-5.9-1.3-11.9-2.3-17.9-2.8-6-0.5-12-0.7-18-0.5-5.4 0.1-10.9 0.5-16.3 1.1-11.7 1.2-23.3 3.3-34.6 6.6-15.4 4.4-29.8 10.8-43.1 19.8-12 8.1-22.3 18-31.4 29.2-7.7 9.5-14.3 19.7-20 30.5-8.1 15.3-16.1 30.6-24.1 45.9-4.9 9.4-9.9 18.9-15.4 28-0.2 0.4-0.4 0.8-0.7 1.1-1 1.3-2.6 1.6-3.8 0.8-1.2-0.8-1.5-2.4-0.8-3.7 2.4-4.2 4.9-8.3 7.2-12.5 6-10.8 11.6-21.9 17.2-33 5.4-10.7 10.9-21.4 16.9-31.8 5.6-9.6 11.7-18.9 18.6-27.7 15.4-19.5 34.7-33.8 57.6-43.4 11.1-4.6 22.5-8.1 34.2-10.5 5.3-1.1 10.7-2 16.1-2.8 4.5-0.6 9-1.1 13.5-1.4 4.2-0.2 8.6-0.4 13.1-0.6z"
              fill="#CF2931"
              p-id="5451"
            ></path>
            <path
              d="M212.7 375.2c3.9-0.1 9.3 0.2 14.6 0.7 9.4 0.9 18.7 2.6 27.8 5.2 0.2 0.1 0.4 0.1 0.6 0.2 0.8 0.3 1.2 1 1.1 1.9-0.1 0.9-0.8 1.6-1.7 1.6-0.4 0-0.8-0.1-1.2-0.2-5.7-1.7-11.6-3-17.5-3.9-4.6-0.7-9.1-1.1-13.7-1.4-6.7-0.4-13.4-0.2-20.1 0.1-5.9 0.3-11.7 0.7-17.6 1.3-13.4 1.4-26.5 3.8-39.4 7.5-21 6-40.4 15.3-58 28.3-15.8 11.8-28.7 26.1-39.1 42.8-4.8 7.6-9.1 15.5-13.3 23.5-7.2 13.5-14.3 26.9-21.5 40.4l-3 5.4c-0.2 0.4-0.4 0.8-0.7 1.1-0.9 1.1-2.4 1.4-3.6 0.6-1.1-0.7-1.6-2.2-1-3.4 0.1-0.2 0.2-0.3 0.3-0.5 8-15 16.1-30 24.1-45 4.6-8.6 9.3-17 14.7-25.2 6.8-10.2 14.3-19.8 23-28.5 12-12 25.7-21.5 40.9-29.1 12.3-6.1 25.1-10.8 38.3-14.4 8.4-2.3 16.8-4.1 25.4-5.5 5.8-0.9 11.6-1.7 17.4-2.4 7.2-0.7 14.5-1.1 23.2-1.1zM174.9 629.5c-8.6 0.1-16.4 2-23.9 5.3-4.5 2-8.7 4.4-12.7 7.1-1.1 0.7-2.2 1.3-3.5 1.1-1.4-0.2-2.6-1.3-3.1-2.8-0.4-1.4 0.1-3 1.2-3.8 8.9-6.4 18-12.5 27.9-17.2 2.7-1.3 5.6-2.5 8.5-3.2 2.7-0.7 5.5-0.7 8.3-0.5 6.2 0.4 11.7 2.6 16.9 5.9 4.7 3 9 6.5 13.1 10.2 1.2 1 1.3 2.4 1 3.8-0.7 2.8-4.1 4.1-6.4 2.5-4.7-3.2-9.8-5.4-15.3-6.8-4.1-1.1-8.3-1.6-12-1.6z"
              fill="#CF2931"
              p-id="5452"
            ></path>
            <path
              d="M209 353.3c0 0.7-0.4 1.2-1.3 1.3-1.4 0.1-2.8 0.1-4.1 0.2-4.6 0.3-9.1 0.4-13.7 0.9-23.9 2.3-47.3 7.2-70.2 14.6-17.4 5.7-34.1 13-49.9 22.3-15.5 9.1-29.4 20.2-41.3 33.8-4.5 5.1-8.6 10.6-12.5 16.2-0.3 0.5-0.7 1-1 1.4-0.8 0.9-1.9 1-2.9 0.5-0.9-0.5-1.4-1.6-1-2.6 0.2-0.5 0.4-1 0.7-1.4 15-20.5 33.4-37.2 55.4-50 14.6-8.5 29.9-15.2 45.8-20.6 14.5-5 29.4-8.9 44.4-11.9 6.3-1.3 12.6-2.3 19-3.2 5.5-0.7 11.1-1.4 16.6-1.7 4.7-0.3 9.5-0.5 14.2-0.7h0.7c0.6-0.2 1 0.2 1.1 0.9z"
              fill="#CF2931"
              p-id="5453"
            ></path>
            <path
              d="M43 394.3c-0.9 0.4-1.7 0-2-0.5-0.3-0.5-0.2-1.3 0.2-1.7 0.4-0.4 0.8-0.8 1.2-1 8.1-5.3 16.6-10.1 25.3-14.4 15.3-7.5 31.3-13.6 47.6-18.5 12.5-3.8 25.1-7 37.9-9.5 6.2-1.2 12.5-2.1 18.7-3.2 2.4-0.4 4.9-0.6 7.3-0.9 0.2 0 0.4-0.1 0.5-0.1 0.7 0.1 1.2 0.5 1.2 1.1 0 0.6-0.4 1-1.1 1.1-2.2 0.3-4.4 0.5-6.6 0.8-4.1 0.6-8.2 1.1-12.3 1.8-8.2 1.4-16.4 3.1-24.4 5.2-22.2 5.7-43.7 13-64.4 22.8-9.9 4.7-19.4 10.2-28.6 16.4 0 0.3-0.3 0.5-0.5 0.6zM146.7 342s1.3-0.3 1.1-1.3c-0.2-1.1-1.6-0.8-1.6-0.8-10.4 2.1-20.7 4.6-31 7.6-15.1 4.3-29.9 9.6-44.3 16.1-0.5 0.2-1 1-0.6 1.9 0.5 0.9 1.5 0.6 1.8 0.5 20.6-9.4 42.4-16.4 64.5-21.7 3.4-0.9 6.7-1.6 10.1-2.3z"
              fill="#CF2931"
              p-id="5454"
            ></path>
            <path
              d="M738.6 395.9v109.4h-13.1l-0.6-0.8c-20.1-26.6-40.1-53.1-60.1-79.7-0.4-0.5-0.8-1.1-1.5-1.9v82.3h-13.1v-1.6-106c0-0.6 0-1.1-0.1-1.7h14.2c0.6 1 1.2 2 1.9 2.9 19.4 25.8 38.9 51.6 58.4 77.5 0.2 0.3 0.5 0.6 1 1.2v-1.8-78.3-1.5h13zM386.6 395.9v17.7c0 26.4 0 52.8-0.1 79.2 0 7.3-0.6 14.6-2.3 21.7-2.5 10.7-8.4 18.9-17.5 25-4.1 2.7-11.6 6.6-15.1 7.7-0.8-1.8-1.7-3.5-2.5-5.5 0.5-0.3 0.9-0.5 1.3-0.8 6.7-3.8 12.3-8.7 15.5-16 2.2-4.9 3.4-10.2 3.4-15.5 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16.7-0.1-33-0.1-49.8-0.1zM1020.6 396.4v15h-12.5v-7.5c-2.2 0-78.6 0.3-81.4 0.3v7.3c-4.3 0-8.4-0.1-12.7 0 0-4.9-0.1-9.8-0.1-14.9 1.2-0.1 2.4 0 3.4 0 12.9 0 29.7-0.1 42.6-0.1v-4.1-2.6h14.6c0.1 2.2-0.1 4.1 0 6.7 5.2 0.1 10.5 0 15.5 0.1h15.2c5.2-0.2 10.2-0.2 15.4-0.2z"
              fill="#606060"
              p-id="5455"
            ></path>
            <path
              d="M520.9 389.2c-0.3 2.3-0.5 4.3-0.8 6.4-0.7 0.2-1.4 0.4-2.3 0.7-0.9 6.8-1.8 13.5-2.7 20.4-1.3 0.1-2.5 0.2-3.8 0.3-0.3 1.8-0.6 3.6-0.9 5.5h-3.1c-0.3-1.8-0.5-3.6-0.8-5.5-1.2-0.1-2.4-0.2-3.9-0.3-0.8-6.7-1.5-13.5-2.3-20.4-0.7-0.3-1.4-0.5-2.2-0.8-0.2-2-0.4-4.1-0.7-6.3h23.5z"
              fill="#CF2931"
              p-id="5456"
            ></path>
            <path
              d="M588.3 467.5l0.5 1.2 0.3 0.8c4.4 12 8.9 23.7 13.4 35.6h18.4c-0.2-0.5-0.3-1-0.5-1.4-12.2-32.2-24.5-64.3-36.7-96.5-1.4-3.8-2.8-7.5-4.2-11.3h-12.1c-0.1 0.3-0.2 0.7-0.4 1.1-1 2.5-1.9 4.9-2.9 7.4-11.4 27.8-22.7 55.6-34.1 83.5-2.4 5.8-4.7 11.6-7.1 17.3h16.9c4.2-11.7 8.7-22.8 12.9-34.4l1.2-3.2m3.1-8.1l14.3-36.8c5.8 15.5 8.3 21.2 14.1 36.8-11.6 0.1-16.7 0-28.4 0zM893.6 493.6c-7.9-6.5-13.4-14.7-16.6-24.5-2.6-8-3.4-16.2-3.3-24.6 0.1-15.3 0.1-32.6 0.1-47.8 0 0-0.1 0.7-0.2 0H803c-0.1 0.5-0.2-0.6-0.2 0v37c0 8.3 0.5 16.6-0.8 24.9-2.1 13.8-7.9 25.6-18.7 34.7l-0.4 0.4V504c10.6-6 19.5-13.9 25.6-24.6 6.1-10.7 8.6-22.3 8.9-34.4 0.1-3.4-0.2-6.8-0.2-10.3V409c0-0.9-0.1-1.8 0-2.7h42.1c0.1 0.9 0 1.6 0 2.3 0 10.6-0.2 21.2-0.1 31.8 0 4.9 0.1 9.8 0.7 14.6 3 22 14.5 38.1 33.7 49v-10.4zM1021.3 473.9h2.9v-7.8c-0.6 0.1-1.3 0-1.9 0h-45.5c-0.7 0-1.4-0.1-2.5-0.2v-3.7c0-1.3-0.1-2.5-0.1-3.8-3.4 0-10.9-0.1-13.7 0v7.7h-50.4v7.7h22.6c0.9 0 1.9-0.1 3.2 0-1.1 2.1-2 4.1-3 5.6-3.1 4.8-7.4 8.2-12.4 10.9-2.4 1.3-7.1 3.1-9.6 4.2v8c8.5-2.5 18.4-6.5 25.3-11.8 4.5-3.4 8.2-7.5 10.8-12.5 0.8-1.5 1.6-3.5 2.7-4.5h10.8v31h13.8v-31c3.9 0 7.4-0.1 10.7 0.1 0.4 0 0.5 0.8 0.7 1.3 3.4 8.4 9.6 14.3 17.2 18.8 6.6 3.9 13.8 6.5 21.3 8.5v-7.8c-6.3-2.1-12.1-5-17.2-9.3-2.9-2.4-5.3-5.3-7.1-8.6-0.4-0.8-0.9-1.8-1.4-2.9 1.2-0.1 2.4 0 3.3 0 6.5 0.1 13 0.1 19.5 0.1z"
              fill="#606060"
              p-id="5457"
            ></path>
            <path
              d="M399 577.9l7.4 3.9c0.4 0.2 0.4 0.5 0 0.9l-2.1 3 0.3 26.7 0.3 13.4c0 5.9-3.4 10.4-10.1 13.4-0.4 0.2-0.6 0-0.6-0.6 0.2-3.4-1-5.5-3.6-6.5-0.2-0.2-0.3-0.4-0.3-0.6 0-0.2 0.1-0.3 0.3-0.3 4.4 0.2 6.4-0.1 6.2-0.9l-0.6-46.7-38.6 0.6 0.3 44.3c-0.4 3.4-2.1 6.6-5.1 9.8-0.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4 4.8-6.5-5.2-10.8-10-12.8-14.6-4.6 5.3-11 10.7-19.3 16-0.4 0-0.7-0.1-0.9-0.3 0-0.2 0.1-0.4 0.3-0.6 8.3-6.5 14.3-13.2 17.8-19.9-1.4-3.8-2.6-9.7-3.6-17.8-0.2-1.2-0.3-2.1-0.3-2.7l1-0.5z"
              fill="#606060"
              p-id="5458"
            ></path>
          </svg>
        </div>
        <!-- 登录 -->
        <div class="loginbox" v-if="showLogin">
          <div class="input-box">
            <input
              type="text"
              placeholder="请输入用户名"
              v-model="username"
              required
            />
          </div>
          <div class="input-box2">
            <input
              type="password"
              placeholder="请输入密码"
              v-model="password"
              required
            />
          </div>
          <div class="btn">
            <el-button type="warning" @click="handleLogin">立即登录</el-button>
            <el-button type="warning" @click.prevent="switchPage"
              >前往注册</el-button
            >
          </div>
        </div>
        <!-- 注册 -->
        <div class="loginbox" v-else>
          <div class="input-box">
            <input
              type="text"
              placeholder="请输入用户名"
              v-model="username"
              required
            />
          </div>
          <div class="input-box3">
            <input
              type="password"
              placeholder="请输入密码(至少8位数，英文+数字)"
              v-model="password"
              required
            />
          </div>
          <div class="input-box3">
            <input
              type="text"
              placeholder="请输入手机号"
              v-model="phone"
              required
            />
          </div>
          <div class="input-box3">
            <input
              type="text"
              placeholder="请输入邮箱,格式：邮箱(+@qq,com)"
              v-model="email"
              required
            />
          </div>
          
          <div class="btn">
            <el-button type="warning" @click.prevent="switchPage"
              >立即登录</el-button
            >
            <el-button type="warning" @click="handleRegister"
              >确认注册</el-button
            >
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { userLogin, userRegister } from "@/api/login.js";
import { Message } from "element-ui";
import Cookies from "js-cookie";

export default {
  name: "LoginView",
  data() {
    return {
      showLogin: true, // 登录注册切换变量
      username: "",
      password: "",
      phone: "",
      email: "",
    };
  },
  methods: {
    // 切换登录、注册
    switchPage() {
      this.showLogin = !this.showLogin;
    },
    // 登录
    async handleLogin() {
      try {
        const response = await userLogin({
          username: this.username,
          password: this.password,
        });
        console.log(response); // 调试输出
        if (response.message === "登录成功") {
          Cookies.set("token", response.results.token);
          // 将用户信息存入vuex
          this.$store.commit("setUser", response.results.user);
          Message({
            message: "登录成功 正在为您跳转页面",
            type: "success",
          });
          setTimeout(() => {
            this.$router.push("/homePage");
          }, 500);
          return; // 确保成功后不执行后续代码
        } else {
          Message({
            message: "请检查您的账号密码是否正确",
            type: "error",
          });
        }
      } catch (error) {
        console.error(error); // 调试输出
        // 网络错误或其他异常的处理逻辑
        this.$message.error("登录失败，请检查您的账号密码是否正确");
      }
    },
    // 注册
     async handleRegister() {
      try {
        const response = await userRegister({
          username: this.username,
          password: this.password,
          phone: this.phone,
          email: this.email,
        });

        console.log(response); // 调试输出

        if (response.message === "注册成功") {
          this.$message({
            message: "注册成功，请登录",
            type: "success",
          });
          // 注册成功后切换到登录页面
          this.switchPage();
        } else {
          this.$message({
            message: response.error,
            type: "error",
          });
        }
      } catch (error) {
        // console.error(error); // 调试输出
        this.$message.error("注册失败，请重试");
      }
    },
  },
};
</script>

<style scoped>
.login-bg {
  background: url("../assets/imgs/家具2(登录).jpg");
  background-size: 100% 100%;
  height: 100vh;
  width: 100wh;
  background-repeat: no-repeat;
}
.login-form {
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.4);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
}
.logo {
  text-align: center;
  margin-top: -50px;
}
.input-box {
  margin-top: -20px;
  text-align: center;
}
.input-box input {
  width: 250px;
  height: 45px;
  border: 1px solid #efebeb;
  box-shadow: 0 5px 8px 0 #666666;
  /* 行间距 */
  line-height: 50px;
  border-radius: 25px;
  padding-left: 45px;
  /* 选中时的边框颜色 */
  outline: none;
}
.input-box2 {
  text-align: center;
}
.input-box2 input {
  width: 250px;
  height: 45px;
  border: 1px solid #efebeb;
  box-shadow: 0 5px 8px 0 #666666;
  border-radius: 25px;
  padding-left: 45px;
  margin-top: 40px;
  /* 选中时的边框颜色 */
  outline: none;
}
.input-box3 {
  text-align: center;
}
.input-box3 input {
  width: 250px;
  height: 45px;
  border: 1px solid #efebeb;
  box-shadow: 0 5px 8px 0 #666666;
  border-radius: 25px;
  padding-left: 45px;
  margin-top: 20px;
  /* 选中时的边框颜色 */
  outline: none;
}

.btn {
  margin-top: 35px;
  /* 按钮居中 */
  display: flex;
  justify-content: center;
}
.btn button {
  width: 100px;
  height: 40px;
  border: none;
  background: #ca8d47;
  color: #fff;
  font-size: 14px;
}
</style>
